package com.jinxin.platform.cdelecinspect.mapper.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * ${table.comment}
 */
public class CdelecinspectStatistics {
	/** id */
	private String id;
	/** 巡检人员id */
	private String staffId;
	/** 巡检人员 */
	private String staff;
	/** 巡检次数 */
	private int inspectCount;
	/** 累计巡检时长 */
	private long totalInspectDur;
	/** 第一次巡检日期 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date firstInspectTime;
	/** 最近一次巡检日期 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date latestInspectTime;

	public void setId(String id) {
		this.id = id;
	}
	
	public String getId() {
		return this.id;
	}
	
	public void setStaffId(String staffId) {
		this.staffId = staffId;
	}
	
	public String getStaffId() {
		return this.staffId;
	}
	
	public void setStaff(String staff) {
		this.staff = staff;
	}
	
	public String getStaff() {
		return this.staff;
	}
	
	public void setInspectCount(int inspectCount) {
		this.inspectCount = inspectCount;
	}
	
	public int getInspectCount() {
		return this.inspectCount;
	}
	
	public void setTotalInspectDur(long totalInspectDur) {
		this.totalInspectDur = totalInspectDur;
	}
	
	public long getTotalInspectDur() {
		return this.totalInspectDur;
	}
	
	public void setFirstInspectTime(Date firstInspectTime) {
		this.firstInspectTime = firstInspectTime;
	}
	
	public Date getFirstInspectTime() {
		return this.firstInspectTime;
	}
	
	public void setLatestInspectTime(Date latestInspectTime) {
		this.latestInspectTime = latestInspectTime;
	}
	
	public Date getLatestInspectTime() {
		return this.latestInspectTime;
	}
	

	@Override
    public boolean equals(Object o) {
        if (this == o) { return true; }
        if (o == null || getClass() != o.getClass()) {return false;}
        CdelecinspectStatistics that = (CdelecinspectStatistics) o;
        return id.equals(that.id);
    }

    @Override
    public int hashCode() {
        return java.util.Objects.hash(id);
    }
    
    @Override
    public String toString() {
        return "CdelecinspectStatistics{" +
				"ID=" + id +
						",staffId='" + staffId + "'" + 
						",STAFF='" + staff + "'" +
						",inspectCount='" + inspectCount + "'" + 
						",totalInspectDur='" + totalInspectDur + "'" + 
						",firstInspectTime='" + firstInspectTime + "'" + 
						",latestInspectTime='" + latestInspectTime + "'" + 
		                '}';
    }
	
}